package net.devkit.core.pojo.db;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import net.devkit.core.pojo.DevCommandPOJO;


/**
 * The persistent class for the power database table.
 * 
 */
@Entity
@Table(name="power")
public class Power extends DevCommandPOJO<Power>{
	/**
	 * 
	 */
	private static final long serialVersionUID = 4565083882119382979L;
	private int id;
	private String powerCode;
	private String powerDesc;
	private String powerName;

	public Power() {
	}

		
	public Power(int id) {
		super();
		this.id = id;
	}


	@Id
	@Column(unique=true, nullable=false)
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public int getId() {
		return this.id;
	}

	public void setId(int id) {
		this.id = id;
	}


	@Column(name="POWER_CODE", length=20)
	public String getPowerCode() {
		return this.powerCode;
	}

	public void setPowerCode(String powerCode) {
		this.powerCode = powerCode;
	}


	@Column(name="POWER_DESC", length=200)
	public String getPowerDesc() {
		return this.powerDesc;
	}

	public void setPowerDesc(String powerDesc) {
		this.powerDesc = powerDesc;
	}


	@Column(name="POWER_NAME", length=20)
	public String getPowerName() {
		return this.powerName;
	}

	public void setPowerName(String powerName) {
		this.powerName = powerName;
	}


	@Override
	public int compareTo(Power o) {
		// TODO Auto-generated method stub
		return 0;
	}

}